package me.flyray.bsin.server.domain._gen;

import java.util.Map;
import java.util.HashMap;
import java.util.Arrays;
import java.util.List;

import java.io.Serializable;

import me.flyray.bsin.server.domain.SysRoleMenu;

// tell cpd to start ignoring code - CPD-OFF
/**
 *  Sysrolemenu: sys_role_menu
 */
@SuppressWarnings({"PMD"})
public class _SysRoleMenu implements Serializable{
    
    /* 角色id: ROLE_ID VARCHAR */
    public static final String PROP_NAME_roleId = "roleId";
    public static final int PROP_ID_roleId = 1;
    
    /* 菜单id: MENU_ID VARCHAR */
    public static final String PROP_NAME_menuId = "menuId";
    public static final int PROP_ID_menuId = 2;
    
    /* 应用id: APP_ID VARCHAR */
    public static final String PROP_NAME_appId = "appId";
    public static final int PROP_ID_appId = 3;
    

    private static int _PROP_ID_BOUND = 4;

    

    public static final List<String> PK_PROP_NAMES = Arrays.asList(PROP_NAME_roleId,PROP_NAME_menuId,PROP_NAME_appId);
    public static final int[] PK_PROP_IDS = new int[]{PROP_ID_roleId,PROP_ID_menuId,PROP_ID_appId};

    private static final String[] PROP_ID_TO_NAME = new String[4];
    private static final Map<String,Integer> PROP_NAME_TO_ID = new HashMap<>();
    static{
      
          PROP_ID_TO_NAME[PROP_ID_roleId] = PROP_NAME_roleId;
          PROP_NAME_TO_ID.put(PROP_NAME_roleId, PROP_ID_roleId);
      
          PROP_ID_TO_NAME[PROP_ID_menuId] = PROP_NAME_menuId;
          PROP_NAME_TO_ID.put(PROP_NAME_menuId, PROP_ID_menuId);
      
          PROP_ID_TO_NAME[PROP_ID_appId] = PROP_NAME_appId;
          PROP_NAME_TO_ID.put(PROP_NAME_appId, PROP_ID_appId);
      
    }

    
    /* 角色id: ROLE_ID */
    private java.lang.String _roleId;
    
    /* 菜单id: MENU_ID */
    private java.lang.String _menuId;
    
    /* 应用id: APP_ID */
    private java.lang.String _appId;
    

    public _SysRoleMenu(){
    }

    protected SysRoleMenu newInstance(){
       return new SysRoleMenu();
    }

    public String orm_entityName() {
      return "me.flyray.bsin.server.domain.SysRoleMenu";
    }

    
    /**
     * 角色id: ROLE_ID
     */
    public java.lang.String getRoleId(){
         //onPropGet(PROP_ID_roleId);
         return _roleId;
    }

    /**
     * 角色id: ROLE_ID
     */
    public void setRoleId(java.lang.String value){
        this._roleId = value;
    }
    
    /**
     * 菜单id: MENU_ID
     */
    public java.lang.String getMenuId(){
         //onPropGet(PROP_ID_menuId);
         return _menuId;
    }

    /**
     * 菜单id: MENU_ID
     */
    public void setMenuId(java.lang.String value){
        this._menuId = value;
    }
    
    /**
     * 应用id: APP_ID
     */
    public java.lang.String getAppId(){
         //onPropGet(PROP_ID_appId);
         return _appId;
    }

    /**
     * 应用id: APP_ID
     */
    public void setAppId(java.lang.String value){
        this._appId = value;
    }
    
}
// resume CPD analysis - CPD-ON
